<!DOCTYPE html>
<html>
<head>
    <meta name="referrer" content="always">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="format-detection" content="telephone=no" />
    <title>我的账号</title>
    <style>
        .item {
            margin: 10px;
            padding: 10px;
            background: #f9fafa;
            border: 1px solid #ded9d9;
        }
        p {
            margin: 3px;
        }
    </style>
    <script>
        function goChart(id) {
            window.location.href = "chart?id=" + id
        }
    </script>
</head>

<body>

{volist name="users" id="user"}
<div class="item">
    <p>昵称：{$user->nickname} ({$user->remark})</p>
    <p>手机：{$user->mobile}</p>
    <p><a href="chart?id=<?php echo ($user->id);?>">余额：{$user->bean_total}</a></p>
    {if $user->expired}
    <p style="color:red;">Cookie已过期</p>
    {/if}
    {if $user->got_free_fruit}
    <p style="color:red;">已获得免费水果</p>
    {else}
    <p>{$user->tip}</p>
    {/if}
    {if $user->got_dream_factory}
    <p style="color:green;">已获得京喜工厂</p>
    {/if}
{if $user->yesterday}
    <p>昨日增加：{$user->yesterday->increase}</p>
    <p>昨日减少：{$user->yesterday->decrease}</p>
{/if}
</div>
{/volist}
</body>
</html>